package com.crm.business.agreement.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.crm.business.servlet.BaseService;
import com.crm.common.agreement.entity.BO.TemplateBo;
import com.crm.common.agreement.entity.PO.BillAgreementTemplate;
import com.crm.common.agreement.entity.PO.BillAgreementTemplateParams;
import com.crm.common.agreement.entity.PO.BillAgreementTemplateSigner;

import java.io.IOException;
import java.util.List;
import java.util.Map;


public interface IBillAgreementTemplateService extends BaseService<BillAgreementTemplate> {


    public String save(Long fileId, TemplateBo model) throws IOException;

    public int saveDate(BillAgreementTemplate template, List<BillAgreementTemplateSigner> signerList, List<BillAgreementTemplateParams> paramsList);

    public String openTemplateCallBack(String templateIdent);

    public IPage<BillAgreementTemplate> queryPageList(TemplateBo model);

    public List<BillAgreementTemplate> queryList(TemplateBo model);

    public String update(Long fileId, TemplateBo model) throws IOException;

    public Map<String,Object> getTemplateInfo(Long templateId);

    public Map<String,Object> previewUrl(Long templateId);

    public int upStatus(Long templateId,Integer status);

    public int delTemplate(Long templateId);

}
